﻿using Autofac.Extras.DynamicProxy;
using JW.IDao;
using Microsoft.AspNetCore.Mvc;
using System.Linq;
using JW.Web.Base;

namespace JW.Web.Controllers
{
    [Intercept(typeof(LogInterceptor))]
    public class ValuesController : Controller
    {
        //public IStudent _student { get; set; }
        //public ITeacher _teacher { get; set; }

        public ISCRLevel _sCRLevel { get; set; }
        public IAppointmentrecord appointmentrecord { get; set; }

        [HttpGet]
        public ActionResult Get()
        {
            //var name = _student.ShowName("李四");
            //var teacher = _teacher.ShowName("张老师");
            _sCRLevel.GetLevels(1).ToList();
            appointmentrecord.QueryAppointmentRecords();
            return View();
        }

        [HttpGet]
        public ActionResult GetList(int id = 0)
        {
            //var name = _student.ShowName("李四");
            //var teacher = _teacher.ShowName("张老师");
            _sCRLevel.GetLevels(1).ToList();
            return View();
        }
    }
}